<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title>员工表</title>
        <link rel="stylesheet" href="css/list.css"  type="text/css" />
    </head>
    <body>
        <div id="box">
            <h1>员工表</h1>
            <form style="text-align:left;margin-bottom: 20px;margin-left: 30%;" action="" method="get">
          <span style="font-size: 14px; color: #999;">快速查询：</span> <input type="text" name="search" value="" />
          <input type="submit" value="查询" class="btn"/> 
          <a href="speak_html.php"><input type="button" value="添加员工" style="text-align: right;margin-left: 200px;"/></a>
          </form>
            <table>
                <tr>
                    <td class="za">员工号</td>
                    <td class="za">姓名</td>
                    <td class="za">性别</td>
                    <td class="za">相片</td>
                    <td class="za">部门</td>
                    <td class="time">出生日期</td>
                    <td class="time">入职时间</td>
                    <td class="za">相关操作</td>
                </tr>
                <?php 
                 foreach($bbsdata as $v)
                 {
                 ?>
                <tr>
                    <td class="za"><?php echo $v['e_id'];?></td>
                    <td class="za"><?php echo $v['e_name'];?></td>
                    <td class="za"><?php echo $v['e_gender'];?></td>
                    <td class="za"><img src="<?php echo $v['e_img'];?>" /></td>
                    <td class="za"><?php echo $v['e_dept'];?></td>
                    <td class="time"><?php echo $v['date_of_entry'];?></td>
                    <td class="time"><?php echo $v['date_of_birth'];?></td>
                    <td class="za">
                        <a href="bbsupdate.php?e_id=<?php echo $v['e_id']?>">编辑</a>
                        <a href="javascript:" onclick="if(confirm('确定删除该员工吗？')) location.href='bbsdel.php?e_id=<?php echo $v['e_id']?>'">删除</a>
                    </td>
                </tr>
                 <?php
                   }
                 ?>
            </table>
        </div>
    </body>
</html>
